<template>
  <div class="nav">
    <div class="nav-left">
      <slot name="iconfont-left"></slot>
    </div>
    <div class="nav-middle">
      <slot name="title"></slot>
    </div>
    <div class="nav-right">
      <slot name="iconfont-right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "NavHead",
};
</script>

<style scoped lang="less">
.nav {
  display: flex;
  align-items: center;
  width: 100%;
  height: 1.2rem;
  background-color: #ff5654;
  position: fixed;
  top: 0;
  z-index: 999;
  .nav-left {
    width: 15%;
  }
  .nav-right {
    width: 15%;
  }
  .nav-middle {
    flex: 1;
  }
}
</style>